package org.evil.dog.dto.user.login.res;

import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("用户登录后返回信息")
public class ResUserLoginDto {

    @ApiModelProperty(notes = "用户返回token，用于后续登录凭证")
    private String token;
    @ApiModelProperty("更多菜单")
    List<Menu> userMenu = Lists.newArrayList();
    @ApiModelProperty(notes = "用户登陆类型 0 登陆 1 注册")
    private Integer userLogType = 0 ;

    @Data
    @ApiModel("菜单")
    public static class Menu {
        @ApiModelProperty("标题")
        private String title;
        @ApiModelProperty("图标")
        private String icon;
        @ApiModelProperty("地址")
        private String jumpUrl;
    }
}
